complete problem 9 & 10