hw3 and hw5