Implements hashCode() method

Implements hashCode() method