completed hw1 and hw2