adding PublicObject class