updated file for plotting 2 charts simultaneously