In Medina, John entered a school for 160 poor children, mostly orphans, to receive a basic education, mainly in Christian doctrine. They were given some food, clothing and lodging. While studying there, he was chosen to serve as an altar boy at a nearby monastery of Augustinian nuns. Growing up, John worked at a hospital and studied the humanities at a Jesuit school from 1559 to 1563. The Society of Jesus was at that time a new organisation, having been founded only a few years earlier by the Spaniard St. Ignatius of Loyola. In 1563 he entered the Carmelite Order, adopting the name John of St. Matthias.