Created and defined dogYears() function