add object to classes