Business logic for ticketting system