finished chapter2 problems