implementing #4
Merge pull request #5 from ddavison/#4

implementing #4