added the ticket number generator