“Secrets of a Successful Marriage” is the twenty-second episode of Season 5. It first aired on May 19, 1994. The episode was written by Greg Daniels and directed by Carlos Baeza.
Homer fears he may be a little slow, so he goes to the Adult Education Annex. While there, he decides to teach a class of his own on the secrets of a successful marriage, since that is the only thing he is good at.