Completed part 3 of the assignment.