Class for triangle.