update hashtable example for class