updated: chap02-ex05.R