the final objective is to find the radius r