The ticket validating machine