write solution for dog years