add a demo of memento pattern using internal class to ensure security.