Created priceLogic