Using Barcode model class