the work done by the gas is