Indulgences as a Social Factor in the Middle Ages