Chap6 exercises