Added examples of event subscription