use todo.c to manage todo