a program for reading barcode