finish some exercises in 9.6