Update broken example code in README.md

Fixes #7.