Added code from the 2nd half of lecture 8.