#7 create a compareTo method for the Node class