Which of the following best describes the flow of energy through an ecosystem?
a. heat → sunlight → chemical energy
b. sunlight → heat → chemical energy
c. chemical energy → heat → sunlight
d. sunlight → chemical energy → heat