added the correct task1.java