Updated examples for event handling (v1.5)