lesson 7 example code