problem 3-12
problem 3-13