In 1744, Goldsmith went up to Trinity College, Dublin. His tutor was Theaker Wilder. Neglecting his studies in theology and law, he fell to the bottom of his class. In 1747, along with four other undergraduates, he was expelled for a riot in which they attempted to storm the Marshalsea Prison. He was graduated in 1749 as a Bachelor of Arts, but without the discipline or distinction that might have gained him entry to a profession in the church or the law. His education seemed to have given him mainly a taste for fine clothes, playing cards, singing Irish airs, and playing the flute. He lived for a short time with his mother, tried various professions without success, studied medicine desultorily at the University of Edinburgh from 1752 to 1755, and set out on a walking tour of Flanders, France, Switzerland, and Northern Italy, living by his wits (busking with his flute).