coding #51 renaming methods and adding new features to the method that creates the applicable discounts for a payment