implementation of hashtable and stringbuffer