implemented hashtable with pseudoclassical instantiation pattern