Make a start on implementing events - add index.js.