Beginning of code for Discounts problem.