Add some parts of example in chapter 4, minor fix
Merge branch 'master' of https://github.com/gennadiychistyakov/programming-practice-book