add function put
now we have get and put