problem 9 code and tests. tests failing (returning nil) but solution working.