Added function to show histogram