finished Lecture 1