OCA: added codes for Chapter 5.