Ransac, first coding