Add compare method