completed questions 2, 3, and advanced exercise 1