Adding my solution for dinoDex exercise

is this logic correct? from what i can tell, it seems that if your query attribute was "PERIOD" (the check on line 16), it will output every dinosaur and the period it lived in (this puts statement here)... so how would you query for dinosaurs that only lived in the Cretaceous period?