 schoolmaster and Catherine, née Brearcliffe.He was educated at home.At 15 years of age he won a bursary at the University of St Andrews and took the degree of M.A., graduating in 1854 at 19 years of age.