Exercise 2 - Refactor the code to use an isCompleted flag on tasks