modified a1.java