added typedef to Object class