Add example on using Events.

Signed-off-by: crynobone <crynobone@gmail.com>