create a skeleton of example how to use event emitter