TaskList was modifying

Method addTask() was modifying