Add examples for chapter 8: General Programming