Add C example in chapter 4