Finish chapter2 exercises