changed the ProcessTask method to take only 1 task
renamed ProcessTasks to ProcessTask