Fixes #2

Removes the first, old and outdated version of the code.
Merge pull request #11 from jlengrand/issue_2

Fixes #2