updated 'put' doctest