fixed class triangles to accept sides instead of hash