midterm homework