Task.java updated to support the specifications of Doall Tasks