Update HW2.java