Setting the method isStable()