edit lecture: finish lecture 40