Update and rename midterm.txt~ to midterm.txt