Added baseobject and changed inheritance.