code example from lesson 1 to 11