What was one function of the great cathedrals during the Middle Ages?

provide a sanctuary for the priests
serve as a symbol of authority
help people endure the Middle Ages
provide the rich people with education