summary of lecture 5/6/7 till slide 18