Unit test for problem 8.
problem 9 solved.