In medieval times, privileged sinners found absolution for their guilt through more formal contractual penance. Churchmen consulted books of penitentials that prescribed precise medicinal doses — donations, pilgrimages, fasting, and a host of other sacrificial acts — to offset particular sins to get them right again with God. The key was to find a way to keep enjoying sinning and still get to heaven on the cheap.