Added a triangle class.