declared function dogYears and call it later to print to the console