updated chapter 4 with links to GitHub