Replaced switch
Tempalte for word histagram program