Chapter_6 test code add.