Scholastic Posts Gains in Q3, Eyes Higher Costs