added example code in readme