provided Memento-pattern.