update HW2.java and README.txt