implement oop feature for node.js