added the squaring function
added changes