The Role of the Church in Medieval Society: Power and Influence