Finished chapter6