lesson 9 code sample, nb filled out