init method for ticket factory