Graphs class work