Implemented tht GetHashCode method.