Chapter6 exercises