added the method boxAndRay() for peter and the method with the parable and triangles