[chapter3] update 3.1.1 completely