finished for midterm