drag and draw the diagram