Add object as base class for classes