add corrected version of lecture 22