 His uncle and aunt wished him to train for the ministry, but like his father, his own inclination was for the sea.With the idea that if he became a doctor he could join the navy, he entered the University of Edinburgh to study medicine in May 1871.He completed his degree in medicine and surgery in 1875.