example for lecture 4