Adding unassign_ticket() function