 During his university years he showed a keen interest in astronomy and published four papers on the subject.He went to Germany in 1886 for further postgraduate studies and gained his doctorate at the University of Munich under Prof Rainer Ludwig Claisen in Baeyer's laboratory in 1889.In 1890, aged 25, he was elected a Fellow of the Royal Society of Edinburgh.