The Memento Design Pattern — Undo Made Simple

Ever wished you could just undo a mistake in your app — like restoring a document to a previous version or resetting a game level?