Chap 4 and 5

Checking in changes to chapters 4 and 5