Potts model from old version