Inflation cools to 2.4%, closer to Fed’s target