Working on Undo-Redo functionality for calculations.