created logic of currencies vizualization