modified 2_1.java
improved 2_1.java