renamed memento to FigureMemento and added comments