Add isEqual method to check equality.