Added working code
Merge pull request #1 from mcooley/master

Added working code