A function for drawing