Knowing the Enterprise’s class was a point of honour for young me, a bit of trivia that set me apart from kids who only liked Star Trek. It’s unfortunate young me had it wrong.
The episode is widely disliked, so you probably haven’t seen it in a while. I encourage you to watch it again. It’s not hippies and bouncy songs. It’s a mass murderer and his enthralled gang.