adding base class for entities