Added part 4 for homework 1