Changed output to histogram