final-ish version of chapter6