Inflation begins to cool heading into new year