event-handling examples added