Fixed code example in README to comply with 2.0.x

Simple change. Just corrected the README so that the example code works against 2.0.x.