added the code to find a point of intersection but still didnt check the code