added the plotting functions file