update triangle.cs