Biological Diversity in an Ecological Context