Wrote Node::printNode() method