foo function developed
HashMap implementation