The third step of engine cycle is expansion, where the gas mix expands and does work on the piston, causing piston to move down. gas is at a high temp and Work done by the gas is higher than the work done to compress it. At end of stroke exhaust valve opens, pressure decreases