added example code