Added a second version of the Sqrt program with error handling.