triangle class done