node event emitter, timer and inheritance examples