Refactored SquaredRoot