Updated GetHashCode implementation