Refactors tests and main code to separate out the reduced price and the original price, and track the last reduced price.