OCA: added codes for Chapter 3.