Create a package which includes a function to return a square of a number if it is positive else return an error message to the user.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed