How does eating contribute to the flow of energy in an ecosystem?