updates to chapter examples