update exercise3.js