Add an example with events.