added example code and readme content