Fix README example code

Addresses issue #182