chapter4: mileage calculator