almost basic hash table implemented