Modified the way to call the constractor of Node class.