Added classes for Undo and Redo