Update exercise6.js