Initial version of problem 13 - still buggy.