triangles in ruby!!!!