 There he developed a strong interest in chemistry, studying under Professor Thomas Thomson, who was impressed and influenced by the young man.He left the University after receiving his MA in 1824.He later studied medicine at the University of Edinburgh and then briefly taught chemistry at the Glasgow University Portland Street Medical School.