lecture 3 finished