Added hash table code