Turn todolist into a struct