new versions of hw2 and hw3 for phi171