First version of chap6

Please have it reviewed and pull request, thank you!