Added code to lesson 4