safe way to attach coin vibration motor to arduino

use an H-bridge (http://library.solarbotics.net/circuits/driver_4varHbridge.html)
in the picture, attach input a and b to arduino pins.