sqrt function added.