made function for dogYears

made function for dogYears with arguments and parameters