Updating EventHandling example to version 5 syntax.