Created new Base classe for entities.