example06: modification to todo.py