Symbioses: A mathematical theory of 'living together'