test for problem 9