Added part 3 of Homework 3