Andersen gained admission to the University of Copenhagen in 1828, and his literary career began soon afterwards. He hoped to achieve success with poems and plays, and underestimated the kind of stories which have made him famous. Though not particularly fond of children, he had a gift for entertaining them. This led a friend to suggest he write down the stories he invented.