changed get_price to return float value