added variable to calculate the miles per gallon