studied chapter3 and first half of chapter4