added graphs and code