writing for part 3 of lecture 14.