Add algoritm to calculate barcode dependent on code number