Changing notify by notifyAll