Finished problem 3 of Chapter 19