Solved problem 14.

Refactored helper code into separate project.