using a motor driver to control going forwards and backwards

I saw that, but I was just confused on how it supposed to work. I was wondering if the power and ground wires are connected to BOUT1 and BOUT2. I would do the same thing for the other motor. I'm still new to the world of Arduino so its been tough to figure this out on my own.