Example of taking hash value of object and storing it in a hash table. Implimented in Java