problem 6 complete