adding changes to Node.cpp and Node.h