fixed reference to toobject code example