Adding a Method to the Vehicle Class
Returnig a Value
Eliminate range1 and range2 because they're unnecessary, and add an if statement