lecture 4 notes and examples