Chapter 1 problem 3 -- Solution w