Undo Redo Stack Demo

Click the button to generate squares and use Cmd+Z and Cmd+Shift+Z to remove(undo) or add(redo) squares respectively.