added base entity class