public void addMemento(MementoObject m) { savedStates.Add(m); }
public void restoreFromMemento(MementoObject m) { state = m.getSavedState(); }