Finish ch5 exercises