  We present an exact solution for an asymmetric exclusion process on a ring
with three classes of particles and vacancies. Using a matrix product Ansatz,
we find explicit expressions for the weights of the configurations in the
stationary state. The solution involves tensor products of quadratic algebras.
