Example using events.