Preliminary code for drawing nodes