Changed the hashCode logic