Factory workers can sort bad products from good ones