adds example code to the readme