Finished stable solution for problem 5 in Chapter 19