Finish chapter8 assignment