Using undo, redo and history

Using undo, redo and history