Add two more patterns: memento & state