Worked through problem 6.