Margalef index implemented as first example, more to follow
Margalef index implemented as first example, more to follow