Adding my solution for dinoDex exercise