Work done by gas