turn the key that is provided into the index in the array where we want to put the data
maps keys of a given type to integers in a fixed interval [0, n - 1]
a function that maps data to some fixed data for access to create a table