a machine with gears and chains