Adding my solution for dinoDex exercise

remove dead code.