Add examples for event handler implementation