added example code to readme