lecture 7 using do