potts model example