writing for part 5 of lecture 7.