added lecture slides 21 and 22