having means for cooling or heating the devices or media