lecture 2: exercises done