edit lecture: finish lecture 31