problem 5 solved, extracted some common functions to a package object
Merge pull request #4 from holden-caulfield/problem5

problem 5 solved, extracted some common functions to a package object