complete problem 6