Chap5 sample exercises