adding hw2_2.java