try the util.inherits method. working like a charm