Monasticism grew during the Middle Ages. What contributions did monks make to society and religion during Middle Ages?