Thoughtworks Interview Question

Design a system for credit card swiping machine