chapter 17 and 21 typed