Created a sqaure function in a separate file and included it. The function is called at the end.