progit: finish chapter 6