updated Task class

Updated Task Collection class