improve chapter 6 readability
add chapter06.cpp