write triangle class and kind method