Adding histogram plot functions