Lec 5 and edits