Basic Example of a bar-code scanner