It is natural to try to group animals into similar types. Some animals are certainly genetically related to each other. The current animal (zoological) classification system used today is based on theories of evolutionary relationships between creatures. Evolutionists wrongly assume that ALL animals are genetically related to each other.
Since Evolution is itself a theory, the detailed dinosaur classification system shown below is also theoretical -- based on certain assumptions and guesswork -- and thus will change. Dinosaur classification and the assumed number of dinosaur species may vary widely depending on the paleontologist.