model the shopping carts as dynamic resources. use the following distance:

Shopping Cart