update chapter-2 code style