Challenge 2 for Chapter 7

uploaded the second problem for chapter 2.