draw graph first version