hw2 and hw3