 His four sisters married into their gentry network of traders, lairds and lawyers.His mother died when he was thirteen.The following year he matriculated at Edinburgh University where he studied Logic.