added hw2 and hw4