Refrigerators and heat pumps are essentially the same device and differ only in their objectives. A refrigerator's objective is to remove heat from the cold medium, while a heat pump's objective is to supply heat to a warm medium. Both use the vapor compression refrigeration cycle which involves five basic components - a refrigerant, compressor, condenser coils, evaporator coils, and expansion device. The refrigerant absorbs heat inside the fridge/building and is compressed, releasing heat outdoors in the condenser coils, before repeating the cycle. Heat pumps transfer heat between outdoors and indoors using this cycle to provide both cooling and heating with one system.