Pls follow the Garry Fedder thesis from UC Berkeley. You can find it online.. I hope it helps u. Kris