plotting all 3 graphs