Added constructor for Task.java