Added a function to plot multiple charts