chapter6 and 7