taking a midterm is for passing a class