Triangle solution
again triangles
cleaning it up a bit