added exercise 2 from chapter 16: codecadamys python course