Example on how to handle events to perform custom actions. Closes #23 and #22.