wrote a hash table