How to create new Entity type in elgg?

Hi all,

I want to create new entity type in Elgg to model my new class heirerchy.

Is there anyway in which I can define new entity type, while still being able to use ability of Elgg to load various classes using Entity subtype information?