Energy and Matter Movement in Ecosystems