ded half of problem 7