Added task.java file