section_path: Biography/Later years
section_name: Later years
paragraph_text: Later years
  
  In 1766, Henry Scott's younger brother died in Paris, and Smith's tour as a tutor ended shortly thereafter. Smith returned home that year to Kirkcaldy, and he devoted much of the next decade to writing his magnum opus. There, he befriended Henry Moyes, a young blind man who showed precocious aptitude. Smith secured the patronage of David Hume and Thomas Reid in the young man's education. In May 1767, Smith was elected fellow of the Royal Society of London, and was elected a member of the Literary Club in 1775. The Wealth of Nations was published in 1776 and was an instant success, selling out its first edition in only six months.
  
  In 1778, Smith was appointed to a post as commissioner of customs in Scotland and went to live with his mother (who died in 1784) in Panmure House in Edinburgh's Canongate. Five years later, as a member of the Philosophical Society of Edinburgh when it received its royal charter, he automatically became one of the founding members of the Royal Society of Edinburgh. From 1787 to 1789, he occupied the honorary position of Lord Rector of the University of Glasgow.