basic version of a ticket checker program