add corrected version of lecture 22 incorportating Rodrigo's pull request