what are the structure of the ecosystem?