Create TriangleFun