Dinosaurs gradually transformed into birds of millions of years