Properly implement hashCode().