Enhanced class tutorial for event handling.