added graph class
add graph view