Created an initial squaring function.