fix midterm solution for section 1