Role of the Church in the Middle Ages