change example to estimate square roots