Added a graph constructor for the exercises presented to the students.