First implementation of undo/redo.
Implementing undo/redo.