2HashTableWithFunction - hash function in interface