added solution
Merge pull request #609 from delorenzo/patch-4

added solution