exercise 3-7: db using lists module