started to implement histogram functionality in castalia script