Add a simple example to show how to receive event callbacks