Flow of Energy

Skill 1 - How does the unidirectional flow of energy originate at the sun and end up in decomposers? How is all of the energy eventually lost?