End of ch5 exercises