Added some sample codes for the 17th chapter.