Chap5 exercises