change the directory structor of chapter 6