adds example code to README