complete problem 6
complete problem 7