The Role of the Monasteries in Medieval Society