Tacit Modification for Blind Friend

So my next question, if I skip the transistor part how do I wire the diode?

Edit:
I found this diagram on this site http://www.coactionos.com/embedded-design/39-motor-control.html

In my case is that what I should do?