Create getPrice method