implemented third graph