Added functionality to price calculaotr