the function sq

define and test the function sq