show how to work with events