add event definitions to the example