Final Version with HashMap, which would be replaced by other usable method later.