Charles Darwin said this quote

If about a dozen genera of birds had become extinct or were unknown, who would have ventured to have surmised that birds might have existed which used their wings solely as flappers, like the logger-headed duck (Micropterus of Eyton); as fins in the water and front legs on the land, like the penguin; as sails, like the ostrich; and functionally for no purpose, like the Apteryx. Yet the structure of each of these birds is good for it, under the conditions of life to which it is exposed, for each has to live by a struggle; but it is not necessarily the best possible under all possible conditions. It must not be inferred from these remarks that any of the grades of wing-structure here alluded to, which perhaps may all have resulted from disuse, indicate the natural steps by which birds have acquired their perfect power of flight; but they serve, at least, to show what diversified means of transition are possible.