Given a scientific question, generate a correct answer to it.

The community of all of the living and nonliving parts of an environment is known as what?
ecosystem