Add an example to monitor events