Make the example in the readme work.
Merge pull request #315 from mikeal/master

Make the example in the readme work.