[UPDATE] added example code.