On the Origin of Dinosaurs and Mammals