adding lesson 9 code