Adding my solution for dinoDex exercise

this should be a method :)