Refactored solution to fit Coursera infrastructure

refactored the solution and added files to fit the coursera
infrastructure to allow test of solution and submission using coursera
scripts