http://image2.slideserve.com/4093574/compute-and-apply-costs1-t.jpg