Chapter6 finished