hash code

working hash code