Put graph maker into seperate file