finished code changes and writeup for part 3