example using a hash_map