Adding instructions to README

example code found from original author's blog post