initalize the code of chap10