Dynamics of Complex Systems: Ecological Theory