update CBB520HW2_Part2.java class