Completed part 1 + 2 of Homework #4