lecture 2 finalized