commit ch02 code