add triangle.cc