Part 3 from Homework 1