completed solution to prob 21