A system for selling tickets