first version of lecture 5 slides and exercise