made node module a class