Initialized chapter 3 and finished modularization