Update events.rst

Added example for event-handler-registration.