solution prob 7