square and sqrt function added