 Around 1865 his father received an appointment as Agent and Factor on the estate of Sir George Clerk of Penicuik and the family therefore moved to Penicuik (south of Edinburgh).William was then sent to the Edinburgh Institution (now Stewart's Melville College) for further schooling.At age 17 (in 1868) he was apprenticed as an actuary in the Scottish Widows Fund.