Please read chapters 10, 11 and 12 in VanDrunen's book found at: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.115.9659&rep=rep1&type=pdf