A flow of energy from the sun to a producer to consumers to decomposers