Bonifácio was dismissed from his position in December 1833 and replaced by another guardian. Pedro II spent his days studying, with only two hours set aside for amusements. Intelligent, he was able to acquire knowledge with great ease. However, the hours of study were strenuous and the preparation for his role as monarch was demanding. He had few friends of his age and limited contact with his sisters. All that coupled with the sudden loss of his parents gave Pedro II an unhappy and lonely upbringing. The environment in which he was raised turned him into a shy and needy person who saw books as a refuge and retreat from the real world.