refactored out the assumption into its own method.
added a simple example
Add a simple example to README.md