ch5 code
ch5 exercises