first draft of Lecture6