Triplete class complete with calculations