Introduction to Cost Flows