added example code.