function hash_index(key, bucket_count):

   return hash(key) mod bucket_count

 function put(table, key, value):
   index = hash_index(key, table.bucket_count)
   table.buckets[index] = (key, value) # ignoring collisions for now
