add a demo of memento pattern.