using discount strategy pattern in a sample POS system