Dynamics of a lake ecosystem