Finished part 6 of the assignment.