Adding example to the observer pattern