The company reported revenue and profit gains for the third quarter