added graph class