Adding graph class