4.5 Memento

Imagine you need to periodically save your app's state, so that later on it can revert to another point. An example is a word processor in which I can undo any of my edits back to a certain point in time. This is a case where the memento pattern really shines.