Entity class added

could need changes, base entity class