solved ex3
added notes for lecture 5