lecture 9 finished