Added chapters 3 and 4