Think of a frog as a functional machine designed to produce baby frogs. This is the Darwinian view, and is really what evolution is all about. In order to succeed, the frog has to stay alive long enough to grow up and get pregnant or get some female frog pregnant. That means it has to do two things. It has to eat. And it has to avoid being eaten.