Changed radius from integer to double for more precision