Removed unnecessary subclassing from object.