Added example with HashMap.