delete a todo
sort todos
extract get method
initialize index at start