Changed the code for pricing strategy pattern