An example of how you would write a flexible pricing engine for calculating how much the goods cost at checkout.