Add observer pattern example