Code to create a new ticket