add a modify method

I find this method useful. Obviously it's very simple and easy to work
around but worth having.