Examples for Memento and Observer patterns.