add a new method `compare`