Part 3 of hw3