added triple class