Trying to draw graph