Hey, this is my first exercise

If you invert this to parse search params, and *then* iterate over each dinosaur, this code will become less confusing. It'll also eliminate a few levels of indirection.