make Diametric::Entity a class