new method (the if + $price definition) would be convenient for extending purposes