normalizing the name of Hash indexing to match that of the array indexing
add in hash indexing and add a test for it and for array indexing too