Expansion and Contraction of Gases