part 1 of lecture 3: closures