added HW8pt2.java