stored numTriangles as instance var