implement ObjectEqualityComparator class