implement findPlane method