adding problem 9