Add class triplet to row compressed form