Lecture 5 as presented