ch3 code
ch 3 exercises