Create TriangleSquare (java code)