another similar program in node