Uptake of gas molecules by liquids: A model