Made saveList function and doneTask function