added chap 4 and finished chap 3