modified hashmap without runtime example to free its memory correctly
updated names in hash example, to follow the same nomenclature