Fix README.md example to prevent NoMethodError