Putting Triangles into Categories using Variables