Created triangle class