updates to Chapter6