adding in most of homework for chapter 4