finish chapter 6 coding and writing