We present an exact solution for an asymmetric exclusion process on a ring
with three classes of particles and vacancies. Using a matrix-product Ansat
z, we find exact expressions for the weights of the configurations in the s
tationary state. The solution involves tensor products of quadratic algebra
s.