solution to prob 20