revised chapters 3,4,6 and 9