Adding base class for entities