The circulation of matter and flow of energy in nature