Interactions between species in a habitat