Complex sentence: While his pupil attended lectures, Smith studied moral philosophy under Dugald Stewart, as well as medicine and chemistry.
Split into simpler sentences: While his pupil attended lectures, Smith was not idle. He studied moral philosophy under Dugald Stewart, and devoted much time to medicine, and chemistry.