Computation of 1-5 classes