Completed part B of assignment.