Expansion of a Perfect Gas