finish ch5.6 exercises