Doing chapter6