Add example showing how to subscribe to events