Inlined totalPrice method
Moved totals calculation to Cart
Calculate purchaseAmount in PublisherContract.
Use totalAmount directly from Cart totalPrice.