h-bridge writeup done