First implementation of entity class