added example code to sender