a machine shifts gears and an object latches