Traiangle class updted