chap 2-7. solved.