Implementation of the objective C ToDo tutorial in swift