grouping border colours into classes