Medieval society was founded on the political, economic, and social institutions of