Refactored price_range method using a ternary operator.