First version of undo (ctrl+z)