passing the values in the code for dogYears