Fossils of certain dinosaurs and reptiles show imprints of feathers along with their bones but they could not fly presumably, using the feathers for insulation only. Later they evolved and adapted feathers for flight, thus becoming the ancestors of present day birds