Corrected chapter 2 examples