HW 6: Java classes and graph assignment