compute_heat_capacity returns a named tuple now