format the code style in chapter 2

run the three templates, now i am looking into the meaning of the these
results.