Listen to the events in the example