Basic test for problem 14.
Basic work for problem 12.

may have to refactor this one.