In this episode , Bart fails four history exams in a row and the school psychiatrist recommends that Bart repeat the fourth grade . In the episode , Bart fails four consecutive history exams and the school psychiatrist recommends that Bart repeat the fourth grade .