A Text Theory of Ecological System