MBA Level 8 done - refactored with addTodoItem function that maintains completed and not completed items