Add functions bars and hist.

Function bars plots bar charts, function hist plots histograms.