Added first example of event handling