lecture 2 exercises