Creating the async square function