www.cs.uiowa.edu/~jones/step/an907a.pdf
Here is a tutorial, look at the bipolar section.