Edit to class custom equality.