Barcode class

Closes #2