Extended the generic Observer pattern and the chat example for it.