HW8 (Emilijus Grasys)

Need to check node1 to make sure it isn't too big before using it.