added mpg formula and console log