Modified the defix function and also add some new ideas to the Square function