Finished problem 3 for chapter 5 to a large extent.