Abstract out the Nodes collection. Instead of providing a getNodes() method,