His apparatus for the liquefaction of air combined the cooling effect achieved by allowing a compressed gas to expand ( the Joule-Thomson effect first observed by James Prescott Joule and Lord Kelvin ) with a counter-current heat exchange technique that used the cold air produced by expansion to chill ambient air entering the apparatus.