lecture 4 finished