adding entity class