finishes up the ch 6 exercises