Adding the example to show support for events