updated the Hash Map code so that it is syntactically correct and works