Sir Walter Scott's The Heart of Midlothian, Walter Scott