graphs and final code for submission is updated