the work done by the engine is