Added problem 5 solution in chapter 4