Add `$event` paramater to example, fixes #3