Chapter 15, starting on the event module in section, An Event Module.