Almost done with the hashing function