add triangle calculation
end of class