Added task structure
AddTask Function for the TaskManager