The engine of a small machine pulling chains