fixed issue 9
Merge pull request #23 from mgosciniak/master

fixed issue 9. Good!