exercises for lecture 6