Triplet class