* Bad smell: Variables for purchasing an item and collecting money (money, extra, difference, item) are unnecessarily declared as member variables. They will be changed to variable local to getPayment and BuyItem. The item number will be passed from BuyItem to getPayment.