function to square a number using the simplified ABI