From what i believe you are wanting to achieve, i would suggest you put calculations for the MPG in the getMPG() method, and then remove 'double MPG' as a parameter in the constructor.