added plots and codes to generate plots