In the Middle Ages, who was responsible for providing basic social services?

A. Hospitals

B. Public schools

C. The Monarchy

D. Monasteries and Convents