finished chap 3 exercises