finished getAllNodes() and add some methods to node.java