added fixed lesson 10 code