chapter3 and 4