Added Undo command in OOP