Macy’s Inc. beats Q3 expectations driven by better inventory management