ch 3 exercises, up to ex3.4
ex 3.4