Which component of a refrigerator or air conditioner absorbs and releases heat energy?

compressor