46203421 add barcode object

Specs are passing. The barcode generation has
been mocked in the specs to test it.