Renamed todo->ticket[s]; simplified code with Element storage