Created graph class