"A Spanish class."
Translation:Una clase de español.
Why not una clase espanol? It is not clear whether the class is studying Spanish or whether A Spanish class is going on a field trip.
So it literally translates to a class of Spanish, which to me means that there is a class, and the class is Spanish. It's identifying that is it's a class, and specifically a Spanish one.