add cart.java file
add get barcodes function