Add some notes on the design pattern for event handling (interrupts).