Update assignment6.js