A sample of an ideal gas has pressure p0, volume V0 and temperature T0. It is isothermally expanded to twice its original volume. It is then compressed at constant pressure to the original volume V0. Finally the gas is heated at constant volume to get the original temperature.