added hw2.js