added editing (and undoing) to the example