created a new Path class representing a path through the node network