new class: graph