Implemented the method hashCode().
Implemented the method hashCode().