Adding my solution for dinoDex exercise

`temp` should be better named as well.