add script for plotting graphs