When did flying birds first appear on earth?

they were the first dinosaurs on earth we think