convert chapter6 and chapter7 to maven project.