Mathematical Modelling of Ecosystems