partially completed dinosaur exercise (iterating through arrays in JSON