Chapter9 exercises