Chap2 exercise commit