EventEmitter with ‘data’, ‘end’ and ‘error’ event