added example7.js