added h-bridge example code