extending objects in base class