Implemented an entity-system framework.