A function returning HashMap.