Added problem 22 and tests.