todo list that resets the array key values starting at 1