writing for part 1 of lecture 16.