Changed the hashCode calculation