Update all codes for Chapter 1