added dog year function, parameteres and invocations