finished chapter 6 of IntroToML