A heat engine is composed of a long cylindrical tube that contains molecules inside this area and that contains a movable piston controlled by an outside force, maybe your hand that's moving it up or down.