clean up lib methods & add solution
Merge pull request #13 from walkermalling/try12

clean up lib methods & add solution