hw3 and hw4