Add example of events

In Events.js